import request from '@/utils/request'

// 查询实习考勤列表
export function listPraCheck(query) {
  return request({
    url: '/practice/praCheck/list',
    method: 'get',
    params: query
  })
}

// 查询实习考勤详细
export function getPraCheck(id) {
  return request({
    url: '/practice/praCheck/' + id,
    method: 'get'
  })
}

// 新增实习考勤
export function addPraCheck(data) {
  return request({
    url: '/practice/praCheck',
    method: 'post',
    data: data
  })
}

// 修改实习考勤
export function updatePraCheck(data) {
  return request({
    url: '/practice/praCheck',
    method: 'put',
    data: data
  })
}

// 删除实习考勤
export function delPraCheck(id) {
  return request({
    url: '/practice/praCheck/' + id,
    method: 'delete'
  })
}

// 导出实习考勤
export function exportPraCheck(query) {
  return request({
    url: '/practice/praCheck/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/practice/praCheck/importTemplate',
    method: 'get'
  })
}